package com.acdc.device.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 电能表管理对象 meter_device
 * 
 * @author ruoyi
 * @date 2025-05-19
 */
public class MeterDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 管理单位 */
    @Excel(name = "管理单位")
    private Long orgId;

    /** 用电点ID，关联用电点信息表 */
    @Excel(name = "用电点ID")
    private Long powerId;

    /** 用电点信息 */
    private PowerPointInfo powerPointInfo;

    /** 生产厂家 */
    private String manufacturer;

    /** 电表编号 */
    @Excel(name = "电表编号")
    private String meterNo;

    /** 表地址码 */
    @Excel(name = "表地址码")
    private String logicAddr;

    /** 设备类别 */
    @Excel(name = "设备类别")
    private String sortCode;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private String typeCode;

    /** 接线方式 */
    @Excel(name = "接线方式")
    private String wiringMode;

    /** 通讯规约 */
    @Excel(name = "通讯规约")
    private String commProtCode;

    /** 通讯波特率 */
    @Excel(name = "通讯波特率")
    private String baudrateCode;

    /** 通讯方式 */
    @Excel(name = "通讯方式")
    private String commModeCode;

    /** 综合倍率 */
    @Excel(name = "综合倍率")
    private BigDecimal tFactor;

    /** 标准电压(V) */
    @Excel(name = "标准电压(V)")
    private String voltCode;

    /** 标准电流(A) */
    @Excel(name = "标准电流(A)")
    private String ratedCurrent;

    /** 电价码 */
    @Excel(name = "电价码")
    private String prcCode;

    /** 用电容量 */
    @Excel(name = "用电容量")
    private BigDecimal powerCapacity;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    /** 用户户号 */
    @Excel(name = "用户户号")
    private Long consNo;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 用户地址 */
    @Excel(name = "用户地址")
    private String userAddr;

    /** 台区编号 */
    @Excel(name = "台区编号")
    private String tgNo;

    /** 分路号 */
    @Excel(name = "分路号")
    private String channelNo;

    /** 白码值 */
    @Excel(name = "白码值")
    private String qrcode;

    /** 管理单位名称 */
    @Excel(name = "管理单位名称")
    private String deptName;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private String deviceStatus;

    /** 对应物联网模块 */
    @Excel(name = "对应物联网模块")
    private Long iotModuleId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOrgId(Long orgId) 
    {
        this.orgId = orgId;
    }

    public Long getOrgId() 
    {
        return orgId;
    }

    public void setPowerId(Long powerId) 
    {
        this.powerId = powerId;
    }

    public Long getPowerId() 
    {
        return powerId;
    }

    public void setPowerPointInfo(PowerPointInfo powerPointInfo) {
        this.powerPointInfo = powerPointInfo;
    }

    public PowerPointInfo getPowerPointInfo() {
        return powerPointInfo;
    }

    public void setManufacturer(String manufacturer) 
    {
        this.manufacturer = manufacturer;
    }

    public String getManufacturer() 
    {
        return manufacturer;
    }

    public void setMeterNo(String meterNo) 
    {
        this.meterNo = meterNo;
    }

    public String getMeterNo() 
    {
        return meterNo;
    }

    public void setLogicAddr(String logicAddr) 
    {
        this.logicAddr = logicAddr;
    }

    public String getLogicAddr() 
    {
        return logicAddr;
    }

    public void setSortCode(String sortCode) 
    {
        this.sortCode = sortCode;
    }

    public String getSortCode() 
    {
        return sortCode;
    }

    public void setTypeCode(String typeCode) 
    {
        this.typeCode = typeCode;
    }

    public String getTypeCode() 
    {
        return typeCode;
    }

    public void setWiringMode(String wiringMode) 
    {
        this.wiringMode = wiringMode;
    }

    public String getWiringMode() 
    {
        return wiringMode;
    }

    public void setCommProtCode(String commProtCode) 
    {
        this.commProtCode = commProtCode;
    }

    public String getCommProtCode() 
    {
        return commProtCode;
    }

    public void setBaudrateCode(String baudrateCode) 
    {
        this.baudrateCode = baudrateCode;
    }

    public String getBaudrateCode() 
    {
        return baudrateCode;
    }

    public void setCommModeCode(String commModeCode) 
    {
        this.commModeCode = commModeCode;
    }

    public String getCommModeCode() 
    {
        return commModeCode;
    }

    public void settFactor(BigDecimal tFactor) 
    {
        this.tFactor = tFactor;
    }

    public BigDecimal gettFactor() 
    {
        return tFactor;
    }

    public void setVoltCode(String voltCode) 
    {
        this.voltCode = voltCode;
    }

    public String getVoltCode() 
    {
        return voltCode;
    }

    public void setRatedCurrent(String ratedCurrent) 
    {
        this.ratedCurrent = ratedCurrent;
    }

    public String getRatedCurrent() 
    {
        return ratedCurrent;
    }

    public void setPrcCode(String prcCode) 
    {
        this.prcCode = prcCode;
    }

    public String getPrcCode() 
    {
        return prcCode;
    }

    public void setPowerCapacity(BigDecimal powerCapacity) 
    {
        this.powerCapacity = powerCapacity;
    }

    public BigDecimal getPowerCapacity() 
    {
        return powerCapacity;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setConsNo(Long consNo) 
    {
        this.consNo = consNo;
    }

    public Long getConsNo() 
    {
        return consNo;
    }

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setUserAddr(String userAddr) 
    {
        this.userAddr = userAddr;
    }

    public String getUserAddr() 
    {
        return userAddr;
    }

    public void setTgNo(String tgNo) 
    {
        this.tgNo = tgNo;
    }

    public String getTgNo() 
    {
        return tgNo;
    }

    public void setChannelNo(String channelNo) 
    {
        this.channelNo = channelNo;
    }

    public String getChannelNo() 
    {
        return channelNo;
    }

    public void setQrcode(String qrcode) 
    {
        this.qrcode = qrcode;
    }

    public String getQrcode() 
    {
        return qrcode;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeviceStatus(String deviceStatus) {
        this.deviceStatus = deviceStatus;
    }

    public String getDeviceStatus() {
        return deviceStatus;
    }

    public void setIotModuleId(Long iotModuleId) {
        this.iotModuleId = iotModuleId;
    }

    public Long getIotModuleId() {
        return iotModuleId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orgId", getOrgId())
            .append("powerId", getPowerId())
            .append("powerPointInfo", getPowerPointInfo())
            .append("manufacturer", getManufacturer())
            .append("meterNo", getMeterNo())
            .append("logicAddr", getLogicAddr())
            .append("sortCode", getSortCode())
            .append("typeCode", getTypeCode())
            .append("wiringMode", getWiringMode())
            .append("commProtCode", getCommProtCode())
            .append("baudrateCode", getBaudrateCode())
            .append("commModeCode", getCommModeCode())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("tFactor", gettFactor())
            .append("voltCode", getVoltCode())
            .append("ratedCurrent", getRatedCurrent())
            .append("prcCode", getPrcCode())
            .append("powerCapacity", getPowerCapacity())
            .append("userId", getUserId())
            .append("consNo", getConsNo())
            .append("userName", getUserName())
            .append("userAddr", getUserAddr())
            .append("tgNo", getTgNo())
            .append("channelNo", getChannelNo())
            .append("qrcode", getQrcode())
            .append("deviceStatus", getDeviceStatus())
            .append("iotModuleId", getIotModuleId())
            .toString();
    }
}
